package  com.hadron.transitions
{
	import com.hadron.transitions.ITransitionable;
	import com.hadron.transitions.events.TransitionEvent;
	import temple.core.CoreSprite;
	
	/**
	 * This is wrapper for all transitionable display objects.
	 * @author Hadron
	 */
	public class TransitionableCoreSprite extends CoreSprite implements ITransitionable
	{
		
		public function TransitionableCoreSprite() 
		{
			super();
		}
		
		/* INTERFACE com.hadron.transitions.ITransitionable */
		public function transitionIn():void
		{
			dispatchEvent(new TransitionEvent(TransitionEvent.TRANSITION_IN));
		}
		
		public function transitionOut():void
		{
			dispatchEvent(new TransitionEvent(TransitionEvent.TRANSITION_OUT));
		}
		
		public function transitionInComplete():void
		{
			dispatchEvent(new TransitionEvent(TransitionEvent.TRANSITION_IN_COMPLETE));
		}
		
		public function transitionOutComplete():void
		{
			dispatchEvent(new TransitionEvent(TransitionEvent.TRANSITION_OUT_COMPLETE));
		}
	}
}